/*
 * @Author: Bennent_G
 * @Date: 2025-01-17 09:21:29
 * @LastEditTime: 2025-03-24 11:24:20
 * @Description: admin routes
 */
import { RouteRecordRaw } from 'vue-router';
import BaseLayout from "@/layouts/BaseLayout.vue";

const adminRoutes: Array<RouteRecordRaw> = [
	{
		path: "/admin",
		meta: {
			auth: false,
		},
		children: [
			{
				name: "login",
				path: "login",
				meta: {
					auth: false,
				},
				component: () => import('@/views/admin/Login.vue')
			},
			{
				name: "home",
				path: "",
				meta: {
					auth: false,
				},
				component: BaseLayout,
				redirect: {name: "welcome"},
				children: [
					{
						name: "welcome",
						path: "welcome",
						meta: {
							auth: false,
						},
						component: () => import('@/views/admin/Welcome.vue')
					},
					{
						name: "subDashboard",
						path: "subdashboard",
						meta: {
							auth: false,
						},
						component: () => import('@/views/admin/dashboard/Dashboard.vue')
					},
				],
			},
		]
	},
];

export default adminRoutes;
